package WebServices
{
	import com.adobe.crypto.MD5;
	
	internal class AuthenticationData
	{
		private var m_strUsername:String;
		private var m_strPassword:String;
		
		public function AuthenticationData()
		{
		}

		public function get username():String
		{
			return m_strUsername;
		}
		public function set username(strUsername:String):void
		{
			if(m_strUsername != strUsername)
			{
				m_strUsername = strUsername;
			}
		}

		public function set password(strPassword:String):void
		{
			if(m_strPassword != strPassword)
			{
				m_strPassword = strPassword;
			}
		}

		public function getDigest():String
		{
			var A1:String = username + ":" + m_strPassword;
			var HA1:String = MD5.hash(A1);
			var digest:String = MD5.hash("463320IG6457:" + HA1);
			return digest;
		}
	}
}